package com.ruoyi.club.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.club.mapper.ClubScheduleReminderMapper;
import com.ruoyi.club.domain.ClubScheduleReminder;
import com.ruoyi.club.service.IClubScheduleReminderService;

/**
 * 活动日程提醒Service业务层处理
 * 
 * @author Zou
 * @date 2025-11-14
 */
@Service
public class ClubScheduleReminderServiceImpl implements IClubScheduleReminderService 
{
    @Autowired
    private ClubScheduleReminderMapper clubScheduleReminderMapper;

    /**
     * 查询活动日程提醒
     * 
     * @param id 活动日程提醒主键
     * @return 活动日程提醒
     */
    @Override
    public ClubScheduleReminder selectClubScheduleReminderById(Long id)
    {
        return clubScheduleReminderMapper.selectClubScheduleReminderById(id);
    }

    /**
     * 查询活动日程提醒列表
     * 
     * @param clubScheduleReminder 活动日程提醒
     * @return 活动日程提醒
     */
    @Override
    public List<ClubScheduleReminder> selectClubScheduleReminderList(ClubScheduleReminder clubScheduleReminder)
    {
        return clubScheduleReminderMapper.selectClubScheduleReminderList(clubScheduleReminder);
    }

    /**
     * 新增活动日程提醒
     * 
     * @param clubScheduleReminder 活动日程提醒
     * @return 结果
     */
    @Override
    public int insertClubScheduleReminder(ClubScheduleReminder clubScheduleReminder)
    {
        clubScheduleReminder.setCreateTime(DateUtils.getNowDate());
        return clubScheduleReminderMapper.insertClubScheduleReminder(clubScheduleReminder);
    }

    /**
     * 修改活动日程提醒
     * 
     * @param clubScheduleReminder 活动日程提醒
     * @return 结果
     */
    @Override
    public int updateClubScheduleReminder(ClubScheduleReminder clubScheduleReminder)
    {
        clubScheduleReminder.setUpdateTime(DateUtils.getNowDate());
        return clubScheduleReminderMapper.updateClubScheduleReminder(clubScheduleReminder);
    }

    /**
     * 批量删除活动日程提醒
     * 
     * @param ids 需要删除的活动日程提醒主键
     * @return 结果
     */
    @Override
    public int deleteClubScheduleReminderByIds(Long[] ids)
    {
        return clubScheduleReminderMapper.deleteClubScheduleReminderByIds(ids);
    }

    /**
     * 删除活动日程提醒信息
     * 
     * @param id 活动日程提醒主键
     * @return 结果
     */
    @Override
    public int deleteClubScheduleReminderById(Long id)
    {
        return clubScheduleReminderMapper.deleteClubScheduleReminderById(id);
    }
}
